{% extends "!page.html" %}

{% block body %}
{% if current_version and latest_version and current_version != latest_version %}

<div class="admonition note">
  <p class="first admonition-title">Documentation Version</p>
  <p class="last">
      {% if current_version.name|string() in eol_versions %}
      You're reading the documentation for a version of MoveIt 2 that has reached its EOL (end-of-life),
      and is no longer officially supported.
      If you want up-to-date information, please have a look at
      <a href="{{ vpathto(latest_version.name) }}">{{latest_version.name | title }}</a>.

      {% elif current_version.is_released %}
      You're reading the documentation for an older, but still supported, version of MoveIt 2.
      For information on the recommended stable version, please have a look at
      <a href="{{ vpathto(latest_version.name) }}">{{latest_version.name | title }}</a>.

      {% else %}
      You're reading the documentation for the non-stable development version of MoveIt 2.
      For the stable, released version, please have a look at
      <a href="{{ vpathto(latest_version.name) }}">{{latest_version.name | title }}</a>.
      {% endif %}
  </p>
</div>

{% endif %}
{{ super() }}
{% endblock %}%
